package war2100.editor.menu.handler;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;

import war2100.Editor;

public class SaveHandler implements ActionListener {
	private Editor editor;

	public SaveHandler(Editor editor) {
		this.editor = editor;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		try {
			editor.saveWorld();
		}
		catch (IOException e) {
			e.printStackTrace();
		}

	}
}
